const path = require('path')
module.exports = {
  css: {
    loaderOptions: {
      stylus: {
        'resolve url': true,
        import: ['./src/theme']
      }
    }
  },
  pluginOptions: {
    'cube-ui': {
      postCompile: true,
      theme: true
    }
  },
  publicPath: "./",
  chainWebpack: config => {
    config.resolve.alias
      .set('styles', path.join(__dirname, './src/assets/styles/'))
      .set('@', path.join(__dirname, './src/'))
      .set('common', path.join(__dirname, './src/common/'))
      .set('api', path.join(__dirname, './src/api/'))
      .set('views', path.join(__dirname, './src/views/'))
      .set('assets', path.join(__dirname, './src/assets/'))
  },
  devServer: {
    port: 80,
    disableHostCheck: true
  }

}
